package com.bjpowernode.web.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 麦翔盛
 * @ClassName: TecentSmsConfig
 * @Package: com.bjpowernode.web.config
 * @description: 腾讯云短信接口
 * @date 2022/5/20 20:38
 */

@Component
@ConfigurationProperties(prefix = "tencent.sms")
public class TencentSmsConfig {
    int appid;
    String appKey;
    Integer templateId ;
    String smsSign;

    public int getAppid() {
        return appid;
    }

    public void setAppid(int appid) {
        this.appid = appid;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public int getTemplateId() {
        return templateId;
    }

    public void setTemplateId(int templateId) {
        this.templateId = templateId;
    }

    public String getSmsSign() {
        return smsSign;
    }

    public void setSmsSign(String smsSign) {
        this.smsSign = smsSign;
    }

    @Override
    public String toString() {
        return "TecentSmsConfig{" +
                "appid=" + appid +
                ", appKey='" + appKey + '\'' +
                ", templateId='" + templateId + '\'' +
                ", smsSign='" + smsSign + '\'' +
                '}';
    }
}
